Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent overeager subscription restarts on variable reevaluation without change #116

Merged
merged 1 commit into from
Sep 13, 2017

Conversation

Frizi
Copy link
Contributor

@Frizi Frizi commented Sep 13, 2017

There are often cases when deep dependencies may change but the evaluated variables object stays the same. For queries, this is checked internally inside apollo-client. For subscriptions this update is managed via vue-apollo directly. Currently it triggers unsubscribe and new subscription. This change makes sure that subscription is recreated only when necessary.

@Akryum
Copy link
Member

Akryum commented Sep 13, 2017

Thanks for the PR! 👍

@Akryum Akryum merged commit 8dbcadd into vuejs:master Sep 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants